/*
 * @Description: 
 * @Author:  
 * @Date: 2024-03-05 16:03:07
 * @LastEditTime: 2024-03-07 16:15:26
 * @LastEditors:  
 */
import request from '../index';

const baseUrl = '/base-server';
const apiServerUrl = '/api-server';

// 查询操作日志
export const pagingOperationLog = (params: any, pages: any) => {
  return request({
    url: `${apiServerUrl}/operationLog/paging`,
    params: { form: params, pages: pages },
  });
};

// 查询操作日志导出
export const EXPORT_OPERATIONLOG = `${apiServerUrl}/operationLog/export`;

// 查询电桩报文
export const pagingConnectorMessage = (params: any, pages: any) => {
  return request({
    url: `${apiServerUrl}/connectorMessage/paging`,
    params: { form: params, pages: pages },
  });
};

// 查询电桩报文导出
export const EXPORT_CONNECTORMESSAGE = `${apiServerUrl}/connectorMessage/export`;

// 报文详情
export const queryDetails = (params: any) => {
  return request({
    url: `${apiServerUrl}/connectorMessage/query`,
    params: { form: params },
  });
};